<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MARGIN</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .wrap {
            overflow: hidden;
            background-color: antiquewhite;
        }

        .box1 {
            margin-top: 30px;
            background-color: aqua;
            height: 100px;
            margin-bottom: 100px;
        }
        .box2 {
            margin-top: 200px;
            background-color: chartreuse;
            height: 100px;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
</body>

</html>